<?php
class lib_company_cash_log extends lib_base{
	public $table_name = "qc_company_cash_log";
    public $pk = "id";
    
    public function add_log($data){

        $arrBase = array(
            'company_id' =>$data['company_id'],
            'admin_id' =>$data['admin_id'],
            'type' =>$data['type'],
            'money' =>$data['money'],
			'msg' =>$data['msg'],
			'status' =>$data['status'],
			'add_time'=>date('Y-m-d H:i:s'),
		);
		return $this->add($arrBase);
    }

    public function up_status($log_id){

        $arrBase = array(
			'status' =>1,
			'up_time'=>date('Y-m-d H:i:s'),
		);
		return $this->edit($log_id,$arrBase);
    }
}